$def with (course)

<div class="list-group mb-3">
    <a class="list-group-item list-group-item-action list-group-item-info" href="$get_homepath()/scoreboard/$course.get_id()"><i class="fa fa-trophy"></i> Scoreboards</a>
</div>